home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / dev / misc / gms_dev.lha / GMSDev / Includes / files / segments.i < prev   
Encoding:
Text File  |  1998-06-01  |  1.0 KB  |  42 lines

  1.     IFND FILES_SEGMENTS_I
  2. FILES_SEGMENTS_I  SET  1
  3.  
  4. **
  5. **    $VER: segments.i (June 1998)
  6. **
  7. **    Segment Definitions.
  8. **
  9. **    (C) Copyright 1996-1998 DreamWorld Productions.
  10. **        All Rights Reserved
  11. **
  12.  
  13.     IFND    DPKERNEL_I
  14.     include 'dpkernel/dpkernel.i'
  15.     ENDC
  16.  
  17. ****************************************************************************
  18. * Segment object.
  19.  
  20. SEGVERSION   = 2
  21. TAGS_SEGMENT = (ID_SPCTAGS<<16)|ID_SEGMENT
  22.  
  23.    STRUCTURE    SEG,HEAD_SIZEOF  ;Standard header.
  24.     APTR    SEG_Prev         ;Previous segment.
  25.     APTR    SEG_Next         ;Next segment.
  26.     LONG    SEG_MemType      ;Memory type (eg MEM_DATA).
  27.     APTR    SEG_Address      ;Pointer to segment start.
  28.     APTR    SEG_Source       ;Source of segment (NB: FileName only).
  29.     WORD    SEG_CPU          ;The CPU type.
  30.     WORD    SEG_emp          ;...
  31.     WORD    SEG_Size         ;Total size of the segment (in bytes).
  32.  
  33. SGA_Address = (TAPTR|SEG_Address)
  34. SGA_MemType = (TAPTR|SEG_MemType)
  35. SGA_Next    = (TAPTR|SEG_Next)
  36. SGA_Prev    = (TAPTR|SEG_Prev)
  37. SGA_Source  = (TAPTR|SEG_Source)
  38. SGA_Size    = (TLONG|SEG_Size)
  39.  
  40.   ENDC    ;FILES_SEGMENTS_I
  41.  
  42.